package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.textbook.TextbookTeacher;
import com.ruoyi.system.mapper.project.TextbookTeacherMapper;
import com.ruoyi.system.service.project.ITextbookTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 教材编写教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
@Service
public class TextbookTeacherServiceImpl implements ITextbookTeacherService
{
    @Autowired
    private TextbookTeacherMapper textbookTeacherMapper;

    /**
     * 查询教材编写教师
     * 
     * @param id 教材编写教师主键
     * @return 教材编写教师
     */
    @Override
    public TextbookTeacher selectTextbookTeacherById(Long id)
    {
        return textbookTeacherMapper.selectTextbookTeacherById(id);
    }

    /**
     * 查询教材编写教师列表
     * 
     * @param textbookTeacher 教材编写教师
     * @return 教材编写教师
     */
    @Override
    public List<TextbookTeacher> selectTextbookTeacherList(TextbookTeacher textbookTeacher)
    {
        return textbookTeacherMapper.selectTextbookTeacherList(textbookTeacher);
    }

    /**
     * 新增教材编写教师
     * 
     * @param textbookTeacher 教材编写教师
     * @return 结果
     */
    @Override
    public int insertTextbookTeacher(TextbookTeacher textbookTeacher)
    {
        return textbookTeacherMapper.insertTextbookTeacher(textbookTeacher);
    }

    /**
     * 修改教材编写教师
     * 
     * @param textbookTeacher 教材编写教师
     * @return 结果
     */
    @Override
    public int updateTextbookTeacher(TextbookTeacher textbookTeacher)
    {
        return textbookTeacherMapper.updateTextbookTeacher(textbookTeacher);
    }

    /**
     * 批量删除教材编写教师
     * 
     * @param ids 需要删除的教材编写教师主键
     * @return 结果
     */
    @Override
    public int deleteTextbookTeacherByIds(Long[] ids)
    {
        return textbookTeacherMapper.deleteTextbookTeacherByIds(ids);
    }

    /**
     * 删除教材编写教师信息
     * 
     * @param id 教材编写教师主键
     * @return 结果
     */
    @Override
    public int deleteTextbookTeacherById(Long id)
    {
        return textbookTeacherMapper.deleteTextbookTeacherById(id);
    }
}
